<!DOCTYPE HTML>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- <link href="$gqt/admin/bootstrap2.3/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="$gqt/admin/bootstrap2.3/js/bootstrap.min.js"></script> -->
    <script type="text/javascript" charset="utf-8" src="$gqt/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="$gqt/ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="$gqt/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body>
    <!--style给定宽度可以影响编辑器的最终宽度-->
    <div style="margin-left:100px">
        <br/>

        <form id="container" class="form-inline" enctype="multipart/form-data" 
        action="/GQT/public/admin/Infomanage/news_update?id={$data['page_id']}" method="post">
            <br/>
            <div class="form-group">
                <label for="exampleInputName2" style="font-size:14px;font-weight:700">标题：</p></label>
                <input type="text" class="form-control" id="exampleInputName2" name="title" placeholder="" value="{$data['page_title']}">
            </div>
            &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
            <div style="display:none">
                <input type="text" class="form-control" id="exampleInputName2" name="type" placeholder="" value="news">
            </div>
            <br/>
            <div class="" style="height:50px">
                <label for="exampleInputName2" style="font-size:14px;font-weight:700">内容：</label>
                <button class="btn btn-info" type="submit" style="margin-left:800px;"  id="submit">
                    <span aria-hidden="true"></span>提交</button>
            </div>
            <!-- 加载编辑器的容器 -->
            <script type="text/plain" id="editor" name="editor" style="width:1024px;height:800px">
            {$data['page_content']}
            </script>
            <!-- <script type="text/javascript">
    var um = UM.getEditor('editor');
  </script> -->
            <div style="display:none;">
                <input type="text" id="kk" name="contoo">
            </div>

            <br/>

        </form>


        <div class="clear"></div>

        <script type="text/javascript">
            //实例化编辑器
            var ue = UE.getEditor('editor');
//         var ue = UE.getEditor('editor', {
//           toolbars: [
//               ['fullscreen', 'source', 'undo', 'redo', 'bold']
//           ]
// });

        </script>
    </div>

</body>
 <script src="http://lib.sinaapp.com/js/jquery/1.4.2/jquery.min.js"></script>
<!-- <script>
        var data={$data['page_id']};
        $("#submit").click(function() {
        $.ajax({
            type: "post",//数据发送的方式（post 或者 get）
            url: "{:url('admin/infomanage/news_update')}",//要发送的后台地址
            data: {id:data},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
            dataType: "json",//后台处理后返回的数据格式
            success: function (data) {//ajax请求成功后触发的方法
               alert('请求成功')
            };
            // error: function (msg) {//ajax请求失败后触发的方法
            //     alert(msg);//弹出错误信息
            // }
        });
        });
       
</script>
 -->
</html>